home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
PWAPG10.ZIP
/
551.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-08-16
|
3KB
|
275 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
Byte BYTE001
Byte BYTE002
Byte BYTE003
Byte BYTE004
Byte BYTE005
Byte BYTE006
Byte BYTE007
;------------------------------------------------------------------------------
Gosub LABEL007
Gosub LABEL001
End
:LABEL001
Gosub LABEL006
BYTE001 = 5
Gosub LABEL005
BOOLEAN001 = 0
While (BOOLEAN001 == 0) Do
STRING001 = Asc(Inkey())
If (STRING001 == 13) Then
Gosub LABEL003
Continue
Endif
If ((STRING001 == 76) || (STRING001 == 44)) Then
Gosub LABEL004
Dec BYTE001
If (BYTE001 < 1) BYTE001 = 5
Gosub LABEL005
Continue
Endif
If ((STRING001 == 82) || (STRING001 == 46)) Then
Gosub LABEL004
Inc BYTE001
If (BYTE001 > 5) BYTE001 = 1
Gosub LABEL005
Continue
Endif
If ((STRING001 == 72) || (STRING001 == 104)) Then
Gosub LABEL004
BYTE001 = 1
Gosub LABEL002
Continue
Endif
If ((STRING001 == 65) || (STRING001 == 97)) Then
Gosub LABEL004
BYTE001 = 2
Gosub LABEL005
BOOLEAN001 = 1
Continue
Endif
If ((STRING001 == 82) || (STRING001 == 114)) Then
Gosub LABEL004
BYTE001 = 3
Gosub LABEL005
BOOLEAN001 = 1
Continue
Endif
If ((STRING001 == 76) || (STRING001 == 108)) Then
Gosub LABEL004
BYTE001 = 4
Gosub LABEL005
BOOLEAN001 = 1
Continue
Endif
If ((STRING001 == 81) || (STRING001 == 113)) Then
Gosub LABEL004
BYTE001 = 5
Gosub LABEL005
BOOLEAN001 = 1
Continue
Endif
If (STRING001 == 27) Then
Gosub LABEL004
BYTE001 = 5
Gosub LABEL005
BOOLEAN001 = 1
Endif
EndWhile
Gosub LABEL003
Return
:LABEL002
Newline
If (Exist(PPEPath() + "551HELP.PCB")) Then
DispFile PPEPath() + "551HELP.PCB", 0
Else
PrintLn "@X0CSorry, no help is available."
Endif
Gosub LABEL006
Gosub LABEL005
Return
:LABEL003
Select Case (BYTE001)
Case 1
Gosub LABEL002
Case 2
Newline
KbdStuff "A"
End
Case 3
Newline
KbdStuff "R"
End
Case 4
Newline
KbdStuff "L"
End
Case 5
Newline
KbdStuff Chr(13)
End
End Select
Return
:LABEL004
Select Case (BYTE001)
Case 1
Print Chr(13)
Forward BYTE003 - 1
Print STRING002
Case 2
Print Chr(13)
Forward BYTE004 - 1
Print STRING003
Case 3
Print Chr(13)
Forward BYTE005 - 1
Print STRING004
Case 4
Print Chr(13)
Forward BYTE006 - 1
Print STRING005
Case 5
Print Chr(13)
Forward BYTE007 - 1
Print STRING006
End Select
Return
:LABEL005
Select Case (BYTE001)
Case 1
Print Chr(13)
Forward BYTE003 - 1
Print STRING007
Case 2
Print Chr(13)
Forward BYTE004 - 1
Print STRING008
Case 3
Print Chr(13)
Forward BYTE005 - 1
Print STRING009
Case 4
Print Chr(13)
Forward BYTE006 - 1
Print STRING010
Case 5
Print Chr(13)
Forward BYTE007 - 1
Print STRING011
End Select
Return
:LABEL006
Print ReadLine(PPEPath() + "551.CFG", 1)
BYTE002 = GetY()
BYTE003 = GetX()
Print STRING002 + " "
BYTE004 = GetX()
Print STRING003 + " "
BYTE005 = GetX()
Print STRING004 + " "
BYTE006 = GetX()
Print STRING005 + " "
BYTE007 = GetX()
Print STRING006 + " "
Return
:LABEL007
STRING002 = ReadLine(PPEPath() + "551.CFG", 2)
STRING003 = ReadLine(PPEPath() + "551.CFG", 3)
STRING004 = ReadLine(PPEPath() + "551.CFG", 4)
STRING005 = ReadLine(PPEPath() + "551.CFG", 5)
STRING006 = ReadLine(PPEPath() + "551.CFG", 6)
STRING007 = ReadLine(PPEPath() + "551.CFG", 7)
STRING008 = ReadLine(PPEPath() + "551.CFG", 8)
STRING009 = ReadLine(PPEPath() + "551.CFG", 9)
STRING010 = ReadLine(PPEPath() + "551.CFG", 10)
STRING011 = ReadLine(PPEPath() + "551.CFG", 11)
Return
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 5 End
; 48 Goto
; 32 Let
; 26 Print
; 1 PrintLn
; 28 If
; 1 DispFile
; 25 Gosub
; 7 Return
; 1 Inc
; 1 Dec
; 5 Newline
; 4 KbdStuff
; 10 Forward
;
;
; ■ Functions used :
;
; 18 +
; 10 -
; 32 ==
; 1 <
; 1 >
; 26 !
; 7 ||
; 11 Chr()
; 1 Asc()
; 1 Inkey()
; 13 PPEPath()
; 11 ReadLine()
; 1 Exist()
; 5 GetX()
; 1 GetY()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 1 While/EndWhile
; 10 If/Then or If/Then/Else
; 3 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------